Fix includes if built against musl
authorAndré Klitzing <aklitzing@gmail.com>
Fri, 10 Mar 2017 21:01:21 +0000 (22:01 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 10 Mar 2017 22:11:47 +0000 (22:11 +0000)
LOCK_* is defined in sys/file.h

http://git.musl-libc.org/cgit/musl/tree/include/sys/file.h

Closes: #730
Approved by: cgwalters

src/libostree/ostree-repo.c
src/libostree/ostree-sysroot.c

index 716044808bfc8acaa59159bc790fd0aabd4a9f69..0f1c3631c77c547d4da6bf1931802dc35f6f48a0 100644 (file)
@@ -42,6 +42,7 @@
 
 #include <locale.h>
 #include <glib/gstdio.h>
+#include <sys/file.h>
 
 /**
  * SECTION:ostree-repo
index f50e34bdde654c65aeaea13a397a34cd2f96123c..4ed0d759d9518889931802153ad6e808e16c9f0c 100644 (file)
@@ -21,6 +21,7 @@
 #include "config.h"
 
 #include "otutil.h"
+#include <sys/file.h>
 #include <sys/mount.h>
 #include <sys/wait.h>